package cn.iocoder.yudao.module.scrm.controller.admin.marketing.vo.category;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
import static cn.iocoder.yudao.framework.common.util.date.DateUtils.TIME_ZONE_DEFAULT;

@Schema(description = "管理后台 - 营销分类分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class MarketingCategoryPageReqVO extends PageParam {

    @Schema(description = "父级id(顶层默认为0)", example = "15996")
    private Integer parentId;

    @Schema(description = "数据范围(指定部门id数组)", example = "31781")
    private String deptId;

    @Schema(description = "数据范围(显示部门名称数组)", example = "赵六")
    private String deptName;

    @Schema(description = "分类层级(暂时1,2,3级)")
    private Integer level;

    @Schema(description = "分类名称", example = "赵六")
    private String name;

    @Schema(description = "营销类型   scrm_marketing_type", example = "1")
    private String marketingType;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND, timezone = TIME_ZONE_DEFAULT)
    private LocalDateTime[] createTime;

    @Schema(description = "是否能有下级0能 1不能")
    private String ifLevel;

}